package edu.jetwinner.common;

import java.util.ArrayList;
import java.util.Collection;

/**
 * @author xulixin
 */
public final class EasyListUtil {

    private EasyListUtil() {
        // reserved.
    }

    /**
     * 判断是否为空.
     */
    public static boolean isEmpty(Collection collection) {
        return (collection == null || collection.isEmpty());
    }

    /**
     * 判断是否为不为空.
     */
    public static boolean isNotEmpty(Collection collection) {
        return !(isEmpty(collection));
    }

    public static <E> ArrayList<E> newArrayList() {
        return new ArrayList<E>();
    }
}
